#include <stdio.h>
#include <math.h>

#define Max(a, b) ((a) > (b)? (a) : (b))

static int solve()
{
    int n, i;
    double max_usd = 0.0, max_cad = 1000.0;

    if (!(scanf("%d", &n) == 1 && n > 0))
        return 0;

    for (i = 0; i < n; i++)
    {
        double rate, usd, cad;
        scanf("%lf", &rate);
        usd = floor((max_cad * 0.97) / rate * 100) / 100;
        cad = floor((max_usd * 0.97) * rate * 100) / 100;
        max_usd = Max(max_usd, usd);
        max_cad = Max(max_cad, cad);
    }
    printf("%.2lf\n", max_cad);
    return 1;
}

int main()
{
    while (solve());
    return 0;
}
